<%@ page import="com.feihao.zhou.domain.Student" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: zhoufeihao
  Date: 2021/5/5
  Time: 20:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>展示学生</title>
</head>
<body>

<table border="1px" align="center" cellpadding="1px" cellspacing="1px">
    <tr>


        <td>学号</td>
        <td>姓名</td>
        <td>年龄</td>
        <td style="text-align: center">birthday</td>
        <td>操作</td>
    </tr>

    <c:forEach items="${list}" var="stu">
        <tr>

            <td>${stu.sid}</td>
            <td>${stu.name}</td>
            <td>${stu.age}</td>
            <td>${stu.birthday}</td>
            <td><a href="/deleteStudentServlet?id=${stu.sid}">删除</a></td>
            <td><a href="/findOneStudentServlet?id=${stu.sid}">修改</a></td>
        </tr>
    </c:forEach>
</table>

<h3><a href="/add.jsp">添加学生</a></h3>

<%--<h3><a href="/deleteStudent.jsp">删除学生</a></h3>
<h3><a href="/updateStudent.jsp">修改学生</a></h3>--%>

</body>
</html>
